package feeds;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 * Created by sunil.kalva@mkhoj.com.
 * User: sunil.kalva
 * Date: May 11, 2010
 */
public class ConnectionUtil {

    private static String M_URL = "jdbc:mysql://10.14.100.27:3306/sunil";
    private static String M_UNAME = "roi";
    private static String M_PWD = "sumeet123456";

    static {
        try {
            Class.forName("com.mysql.jdbc.Driver");
        } catch(ClassNotFoundException e) {
            e.printStackTrace();
        }
    }

    public static Connection createConnection() {

        try {
            return DriverManager.getConnection(M_URL, M_UNAME, M_PWD);
        } catch(SQLException e) {
            return null;
        }
    }

}
